import request_copy from '@/utils/request';

//查询轮播图数据
export function listData(data) {
	return request_copy({
		url: '/mall/lunbo/list_data',
		method: 'post',
		data: data,
	});
}
//查询轮播图展示位置下拉框数据
export function locatTypeData() {
	return request_copy({
		url: '/mall/lunbo/locat_type_data',
		method: 'get',
	});
}

//查询轮播图详情页下拉框数据
export function jumpInfoData() {
	return request_copy({
		url: '/mall/lunbo/jump_info_data',
		method: 'get',
	});
}

//根据objId获取轮播图详情信息
export function lunboInfoData(objId) {
	return request_copy({
		url: '/mall/lunbo/lunbo_info_data',
		method: 'get',
		params: { objId: objId },
	});
}

//新增编辑轮播图详情信息
export function addEdit(data) {
	return request_copy({
		url: '/mall/lunbo/add_edit',
		method: 'post',
		data: data,
	});
}

//根据objId获取轮播图详情信息
export function delLunbo(objId) {
	return request_copy({
		url: '/mall/lunbo/del',
		method: 'get',
		params: { objId: objId },
	});
}
export function sortLunbo(data) {
	return request_copy({
		url: '/mall/lunbo/sort',
		method: 'post',
		data,
	});
}
